{php include template("admin/header");}


<div class="midder">

    {php include template("admin/menu");}

    <div>
        <form method="get" action="{SITE_URL}index.php">
            <input type="hidden" name="app" value="pay" />
            <input type="hidden" name="ac" value="admin" />
            <input type="hidden" name="mg" value="log" />
            <input type="hidden" name="ts" value="list" />
            UID：<input type="text" name="userid" value="{if $userid}{$userid}{/if}" />  <input type="submit" value="搜索" />

        </form>

    </div>


    {if $strPay}
    收入：{php echo floatval($strPay['total'])} 元 / 余额：{php echo floatval($strPay['over'])} 元
    {/if}


    <div class="page">{$pageUrl}</div>

    <table>
        <tr class="old">
            <td width="100">ID</td><td>用户ID/用户名</td><td>金额</td> <td>状态</td> <td>状态信息</td> <td>时间</td>
        </tr>

        {loop $arrLog $key $item}
        <tr>

            <td>{$item['logid']}</td>

            <td>

                {$item['userid']} /

                {if $item['userid']}
                <a target="_blank" href="{tsUrl('user','space',array('id'=>$item['userid']))}">{$item['user']['username']}</a>
                {else}
                匿名
                {/if}

            </td>

            <td>{$item['price']}</td>

            <td>

                {if $item['status']}
                消费
                {else}
                收入
                {/if}

            </td>

            <td>{$item['statusinfo']}</td>

            <td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td>



        </tr>
        {/loop}

    </table>

</div>

{php include template("admin/footer");}